package gomoku;

public class Board {
	
	private int boardRepresentation[][] = new int[15][15];  
	
	public Board() {
		//INITIALIZE THE MATRIX
		for(int i=0; i<15;i++){
			for(int j=0; j<15;j++){
				boardRepresentation[i][j] = 0;
			}
		}
		
	}
	
	public Board(Board b){
		for(int i=0; i<15;i++){
			for(int j=0; j<15;j++){
				boardRepresentation[i][j] = b.getPosValue(i, j);
			}
		}
	}
	
	public int[][] getBoard() {
		return boardRepresentation;
	}
	
	public int getPosValue(int i, int j){
		return boardRepresentation[i][j];
	}
	
	public void putStone(int x, int y, int value) {
		boardRepresentation[x][y] = value;
	}
	
	public void reset() {
		for(int i=0; i<15;i++){
			for(int j=0; j<15;j++){
				boardRepresentation[i][j] = 0;
			}
		}
	}
	
}
